package tump;

/**
 * @Author: sun
 * @Description:定义具有经纬度坐标和时间的TimeLocationBean
 * @Data: create in 18:03 2019/1/26
 * @Modfied by:
 */
public class TimeLocationBean {

    public static final double MINLAT = -90;
    public static final double MAXLAT = 90;
    public static final double MINLNG = -180;
    public static final double MAXLNG = 180;
    /**
     * 纬度[-90,90]
     */
    private double lat;
    /**
     * 经度[-180,180]
     */
    private double lng;
    /**
     * 时间
     */
    private  double time;

    public TimeLocationBean(double lat, double lng, double time) {
        this.lat = lat;
        this.lng = lng;
        this.time = time;
    }

    public double getTime() {
        return time;
    }

    public void setTime(Long time) {
        this.time = time;
    }

    public double getLat() {
        return lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public double getLng() {
        return lng;
    }

    public void setLng(double lng) {
        this.lng = lng;
    }

    @Override
    public String toString() {
        return "TimeLocationBean{" +
                "lat=" + lat +
                ", lng=" + lng +
                ", time=" + time +
                '}';
    }
}
